<?php
/**
 * ValidationException class.
 *
 * @author      Maciej Zawieja.
 * @link        http://akvus.pl
 * @package     Akvus Framework.
 * @subpackage  Libraries.
 * @copyright   2011 All rights reserved for Maciej Zawieja.
 * @version     1.0.0 - 19.08.2011 (Framework 1.3)
 */
class ValidationException extends Exception {
    # flags - error codes
    const TO_SHORT = 1;
    const TO_LONG = 2;
    const NOT_EQUAL = 4;
    const NOT_IDENTICAL = 4;
    const TO_BIG = 8;
    const TO_SMALL = 16;
    const NOT_VALID = 32;
    const INVALID = 32;
    const IS_EMPTY = 64;
    const NOT_NUMBER = 128;
    const NOT_STRING = 256;
    const PARAMS_DISCREPANT = 512;
    const INVALID_TYPE = 1024;

    function  __construct($message, $code) {
        parent::__construct($message, $code);
    }
}